GtkAssistant: Use GtkLabel:xalign
authorMatthias Clasen <mclasen@redhat.com>
Tue, 30 Sep 2014 03:44:46 +0000 (23:44 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 30 Sep 2014 03:56:20 +0000 (23:56 -0400)
gtk/gtkassistant.c

index 444890f79d45d61d11ee803a45582eaee0f0c28a..a6ccc97e49f4c245c5bc6217b658f0bfed3854ae 100644 (file)
@@ -1758,15 +1758,8 @@ gtk_assistant_insert_page (GtkAssistant *assistant,
   page_info->current_title = gtk_label_new (NULL);
   gtk_widget_set_no_show_all (page_info->current_title, TRUE);
 
-G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-  /* Note: we need to use misc alignment here as long as GtkLabel
-   * pays attention to it. GtkWiget::halign is ineffective, since
-   * all the labels are getting the same size anyway, due to the
-   * size group.
-   */
-  gtk_misc_set_alignment (GTK_MISC (page_info->regular_title), 0, 0.5);
-  gtk_misc_set_alignment (GTK_MISC (page_info->current_title), 0, 0.5);
-G_GNUC_END_IGNORE_DEPRECATIONS
+  gtk_label_set_xalign (page_info->regular_title, 0.0);
+  gtk_label_set_xalign (page_info->current_title, 0.0);
 
   gtk_widget_show (page_info->regular_title);
   gtk_widget_hide (page_info->current_title);